package com.parking.bang.rpc.serialize.base;

import java.io.IOException;

import io.netty.buffer.ByteBuf;

/**
 * Interface for encode/decode
 * 
 * @author ivan
 *
 */
public interface CodecUtil {

	public static final int MESSAGE_LENGTH = 4;

	public void encode(final ByteBuf out, final Object message) throws IOException;

	public Object decode(byte[] body) throws IOException;

}
